import { axios } from '@/utils/request'

const api = {
  areaTreeData: '/adminapi/utils/areatree',
  areaListData: '/adminapi/utils/arealist',
  areaHashData: '/adminapi/utils/areahash',
  areaCountData: '/adminapi/utils/areaCount',
}

export default api

export function getAreaTree(parameter) {
  return axios({
    url: api.areaTreeData,
    method: 'get',
    params: parameter
  })
}
export function getAreaList(parameter) {
  return axios({
    url: api.areaListData,
    method: 'get',
    params: parameter
  })
}

export function getAreaHash(parameter) {
  return axios({
    url: api.areaHashData,
    method: 'get',
    params: parameter
  })
}

export function getAreaCount(parameter) {
  return axios({
    url: api.areaCountData,
    method: 'get',
    params: parameter
  })
}
